package com.yunjie.action.ext;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import com.opensymphony.xwork2.ModelDriven;
import com.yunjie.action.BaseAction;
import com.yunjie.model.UserInfo;
@Scope("prototype")
@Controller("extMainAction")
public class ExtMainAction extends BaseAction implements ModelDriven<UserInfo> {
	private static final long serialVersionUID = -1672511480793187658L;
	private UserInfo user;
	private String theme;
	public UserInfo getUser() {
		return user;
	}
	public void setUser(UserInfo user) {
		this.user = user;
	}
	public UserInfo getModel() {
		// TODO Auto-generated method stub
		return this.user;
	}
	
	public String getTheme() {
		return theme;
	}
	public void setTheme(String theme) {
		this.theme = theme;
	}
	public String main() throws Exception {
		return "toMain";
	}
}
